/*
* ============================================================================
*  Name     : GV60ListView.h
*  Part of  : GV60
*  Copyright: Wipo Software
* ============================================================================
*/

#ifndef GV60PHONEBOOKVIEW_H
#define GV60PHONEBOOKVIEW_H

// INCLUDES
#include <aknview.h>
#include <eiklbo.h>    // MEikListBoxObserver


// CONSTANTS
// UID of view
const TUid KGV60PhonebookViewId = {3};

// FORWARD DECLARATIONS
class CGV60PhonebookContainer;

// CLASS DECLARATION

class CGV60PhonebookView : public CAknView, public MEikListBoxObserver
{
  public: // Constructors and destructor
    void ConstructL();
    ~CGV60PhonebookView();

  public: // Functions from CAknView
    TUid Id() const;
    void HandleCommandL(TInt aCommand);
    void HandleClientRectChange();

  public: // From MEikMenuObserver
    void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);

  public: // From MEikListBoxObserver
    void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);

  public:  // New functions
    void SizeChanged();
    TInt GetSelectedItem();

  private:
    void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, const TDesC8& aCustomMessage);
    void DoDeactivate();
  
  private: // Data
    CGV60PhonebookContainer*   m_pContainer;
};

#endif // GV60PHONEBOOKVIEW_H

// End of File
